package com.niit.onlinemusicserver.service;

import com.niit.onlinemusicserver.common.R;
import com.niit.onlinemusicserver.model.domain.PayItem;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface PayService {
  R commonAlipay(List<Integer> songIds, Integer userId, Integer payType) throws Exception;
  R commonPayNotify(HttpServletRequest request) throws Exception;
  void commonPayReturn(String tradeNo, String sign, HttpServletResponse response) throws Exception;
  R allPayList(Integer userId);
  /**
   * @Description: 返回所有支付记录
   **/
  List<PayItem> getAllPayItemList();
}